#pragma once
#include "global.h"
#include "Socket.h"
#include <map>
#include "Jpeg2RgbScreen.h "

#define  WM_MSG_ACCEPT WM_USER +110

 class __declspec(dllexport) DeskTopSer
{
public:
	DeskTopSer(void){};
public:
	~DeskTopSer(void){};
	int start(int port);
	static void  setHwnd(HWND hwnd);
	virtual void printfNotify(char* error);
	static void CALLBACK threadWork_1(SOCKET s, int ServerPort, const char *ClientIP);
public:
	static HWND m_hWnd;
private:
	Socket server;
};
